from django.conf.urls.defaults import patterns, include

from django.contrib import admin
admin.autodiscover()

import search
search.autodiscover()

urlpatterns = patterns('',                        
                       (r'^photos/', include('photos.urls')),
                       (r'^places/', include('places.urls')),
                       (r'^tips/', include('tips.urls')),
                       (r'^links/', include('links.urls')),
                       (r'^events/', include('events.urls')),
                       
                       (r'^search$', 'communities.views.search'),
                       (r'^search/$', 'communities.views.search'),
                       
                       (r'^(?P<communityId>[-a-zA-Z]+)$', 'communities.views.index'),
                       (r'^(?P<communityId>[-a-zA-Z]+)/$', 'communities.views.index'),
                       
                       
                       
                       #(r'^admin/', include(admin.site.urls)),
                       
                       (r'^$', 'views.teaser'),
                       (r'^.*$','views.teaser') #match any request
                       )
